package be.novelfaces.showcase.webdriver.pages.input;

import be.novelfaces.showcase.webdriver.pages.NovelFacesPage;
import be.novelfaces.showcase.webdriver.util.NFBy;
import be.novelfaces.webdriver.component.primefaces.AccordionPanel;
import be.novelfaces.webdriver.component.primefaces.Tab;

public class InputTextPage extends NovelFacesPage<InputTextPage> {

	public static final String EXAMPLE1 = "example1";

	private AccordionPanel accordionPanel;

	@Override
	protected void initNovelFacesPage() {
		accordionPanel = new AccordionPanel(NFBy.mainFormId("accordion"));
		Example1TabContent example1TabContent = new Example1TabContent();
		accordionPanel.addTab(new Tab<Example1TabContent>(NFBy
				.mainFormId(EXAMPLE1), example1TabContent));
		
	}

	@Override
	protected String getContentHeaderTitle() {
		return "Component - "
				+ getProperty("input_text");
	}

	public AccordionPanel getAccordionPanel() {
		return accordionPanel;
	}

}
